﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    public enum Shoptpe
    {
        weapon,
        materials,
        food
    }
    class Shop:NPC  //任务
    {
        private string weapon;
        private string materials;
        private string food;

        public string Weapon
        {
            get { return this.weapon; }
            set { this.weapon = value; }
        }
        public  string Materials
        {
            get { return this.materials; }
            set { this.materials = value; }
        }
        public string Food
        {
            get { return this.food; }
            set { this.food = value; }
        }
        public Shop(string name, Type type,string weapon) : base(name, type)
        {
            this.weapon = weapon;
        }
        public override void Say()
        {
            Console.WriteLine("你好，NPC{0},帮我{1}",this.Name,this.weapon);
        }
    }
}
